From: Giovanni Campagna Date: Wed, 19 Dec 2012 14:17:57 +0000 (+0100) Subject: StDrawingArea: fix texture drawing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5190 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=587c93eadf01fafc6a6a6cb53aac94d9802de44d;p=gnome-shell.git StDrawingArea: fix texture drawing cogl_rectangle() wants the four rectangle corners, not the size. https://bugzilla.gnome.org/show_bug.cgi?id=641745 --- diff --git a/src/st/st-drawing-area.c b/src/st/st-drawing-area.c index daa7e2517..f044cbf31 100644 --- a/src/st/st-drawing-area.c +++ b/src/st/st-drawing-area.c @@ -152,7 +152,7 @@ st_drawing_area_paint (ClutterActor *self) cogl_set_source (priv->material); cogl_rectangle_with_texture_coords (content_box.x1, content_box.y1, - width, height, + content_box.x2, content_box.y2, 0.0f, 0.0f, 1.0f, 1.0f); } }